<template>
  <div style="padding: 10px">
    <d-button
      popconfirm="是否确认提示语"
      :popconfirmProps="{ 'confirm-button-type': 'danger' }"
      @confirm="confirm"
      @cancel="cancel">
      带确认
    </d-button>
  </div>
</template>
<script setup lang="ts">
  import { ElMessage } from 'element-plus'

  // 确认
  const confirm = () => {
    ElMessage.success('确认')
  }
  // 取消
  const cancel = () => {
    ElMessage.info('取消')
  }
</script>
